-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to reuse pre-rendered markup & to reuse DOM nodes #423
base: master
Are you sure you want to change the base?
Conversation
…n to do checksum comparison) This reverts commit b631711. Add tests & doc for string-eq-based self-healing (i.e. autoFix) Add string-eq-based self-healing fix basic example to adapt new createApp behavoir add test for pre-render HTML event handling Modify setAttribute to accept an option parameter Reconstruct createElement so the side effects are now accessible Implement event handler registration for pre rendered HTML Rebase fix
Add failing rerender test Add path-based virtualdom restoration on client-side libs cleanup
get rid of uids on server Remove generator to avoid regenerator runtime
Thanks for the PR @heilage-nsk! I'm going to have a read through this soon and give you some feedback. |
+1 |
2 similar comments
+1 |
+1 |
Looks good to me! The pooling seems like it could exist in an another module rather than living inside Deku, but we can move this out at a later stage. Nice work! For the thunk, having nested thunks with the same path could break anything using the path to store state, so we might need to fix that before we can merge it in. |
@anthonyshort |
+1 |
+1? @anthonyshort maybe merge it? |
Hello,
I've taken 0a's changes from #395 and #396, slightly refactored them to comply with current codebase and added some more things, such as possibility to reuse already created nodes to minimize memory usage.
Also relates to #190
I still have a TODO to resolve (see question in test/app/thunk.js), any advice is appreciated. Also I'm not sure if all of these changes should be in the mainline or it's better to make them as a plugin.
Bench for uibench ( https://localvoid.github.io/uibench/ ) may be run with this custom link: https://heilage-nsk.github.io/uibench-deku/
Headless tests are passing, but for some reason Electron fails to start on my system, so I cannot check it :( I'd be glad if someone would try to run tests on Electron and share the results.